{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">
        <h1>{$title}</h1>

        <table width="800" border="1px solid #ccc">
            <tr>
                <th>id</th>
                <th>权限名</th>
                <th>控制器</th>
                <th>方法</th>
                <th>操作</th>
            </tr>

            {volist name="data" key="k" id="v" }
            <tr>
                <td>{$v['id']}</td>
                <td>{$v['permission']}</td>
                <td>{$v['controller']}</td>
                <td>{$v['method']}</td>

                <td>
                    <button>删除</button>
                </td>

            </tr>
            {/volist}


        </table>
        <a href="{:url('admin/permission/create')}">新增权限</a>

    </div>
</div>

{/block}